package com.xinongbest.mall;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

import javax.sql.DataSource;

@SpringBootApplication
@MapperScan(basePackages = "com.xinongbest.mall.model.dao")
@EnableSwagger2
@EnableCaching // 打开spring缓存
public class XinongbestApplication implements CommandLineRunner {

    @Autowired
    DataSource dataSource;

    public static void main(String[] args) {
        SpringApplication.run(XinongbestApplication.class, args);
    }

    @Override
    public void run(String... args) throws Exception {

    }

    private void showConnection() {

    }
}
